home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #2
/
Monster Media No. 2 (Monster Media)(1994).ISO
/
pcboard
/
dod_rr10.zip
/
RR.PPE
(
.txt
)
< prev
Wrap
PCBoard Programming Language Executable
|
1994-05-23
|
4KB
|
184 lines
;------------------------------------------------------------------------------
; .ss.
; `²²'
; .,sS$Ss,,s$ .,sS$$$Ss. .,sS$Ss,,s$ .ss. .sSs.
; .d$$²^°²$$$$'.d$P²°^^²$P'.d$$²^°²$$$$'.$$$' .$$$²Sb,.
; $$$' .$$$' $$$²Sçsµ²' .$$$' .$$$'.$$$' .$$$' `$$b.
; $$$b,,d$$$' ,$$$b,....,s$$$$b,,d$$$'.$$$;.,$$$' ;$$$
; `²S$$S²²S$$S²°²S$$$$S²°°²S$$$$$$',$$S²°²S$S'.sS$$$P²'
; .sS²°$$$²²°"' d²°'
; .$$² .$$'
; $$$.,d$$'
; `²S$$S²'
;------------------------------------------------------------------------------
; P.P.L.X. 2.OO (C)1996 - Lone Runner / AEGiS CoRP'96
;------------------------------------------------------------------------------
; PPE 2.OO (plain) - Analysis ON - Postprocessing ON
;------------------------------------------------------------------------------
Integer INTEGER001
Integer INTEGER002
Integer INTEGER003
Integer INTEGER004
Integer INTEGER005
Integer INTEGER006
Integer INTEGER007
String STRING002
String STRING003
;------------------------------------------------------------------------------
GetUser
INTEGER007 = 1
INTEGER003 = 30
Log Chr(27) + "[0;31mRussian Roulette v1.00 Coded by Al Bundy", 1
If (Psa(6)) Goto LABEL001
Newline
PrintLn "@BEEP@@X04ERROR@X01: @X03NOTES PSA WAS NOT DETECTED."
Log "ERROR: NOTES PSA WAS NOT DETECTED.", 0
Log Chr(27) + "[0;31mRussian Roulette v1.00 Coded by Al Bundy", 1
End
:LABEL001
If (U_Notes(2) == "") Then
PrintLn "@X01Creating new account . . ."
U_Notes(2) = "0"
PutUser
GetUser
Else
INTEGER002 = U_Notes(2)
Endif
Cls
PrintLn "@X04Welcome to Russian Roulette @X05v1.00@X04 Coded by @X05Al Bundy"
Newline
PrintLn "@X03This is the place where you test your luck. The odds are in @X06YOUR @X03favor"
PrintLn "so there is a @X06VERY @X03good chance of winning. However if you loose you @X06DIE@X03,"
PrintLn "which means the @X06SYSTEM@X03 will @X06HANGUP@X03 on you and you will not be allowed to"
PrintLn "call back today. I think its fair. So are you man enough to play?"
Newline
InputStr "The choice is yours (@X06Y@X03/@X06N@X02): _", STRING002, 2, 3, "YNyn", 256 + 8
Newline
If ((STRING002 == "N") || (STRING002 == "")) Goto LABEL003
PrintLn "@X06Very well then. Here we go."
:LABEL002
INTEGER007 = 0
STRING003 = ""
InputStr "How many minutes are you betting (@X061@X03-@X069@X02): _", INTEGER007, 2, 1, "123456789", 256 + 8
INTEGER005 = Random(5) + 1
Print "@X02Loading chaimber @X03. . . "
Delay 25
PrintLn "@X07DONE!"
Print "@X02Putting @X06GUN @X02to your head @X03. . . "
Delay 25
PrintLn "@X02@X07DONE!"
Print "@X02Pulling the trigger @X03. . . "
Delay 25
INTEGER006 = Random(5) + 1
If (INTEGER006 == INTEGER005) Then
PrintLn "@X04BANG!"
PrintLn "YOU ARE DEAD!"
Newline
PrintLn "@X07You lost your life and @X06" + String(INTEGER003) + " @X07minutes."
PrintLn "@X07Thanks for playing, call back and play again!"
GetUser
AdjTime -INTEGER003
PutUser
Log "User was SHOT and KILLED!", 0
Log Chr(27) + "[0;31mRussian Roulette v1.00 Coded by Al Bundy", 1
Bye
End
Else
PrintLn "@X05CLICK!"
PrintLn "LUCK HAS SMILED IN YOUR FACE!"
INTEGER001 = INTEGER001 + INTEGER007 + Random(43)
INTEGER004 = INTEGER004 + INTEGER007
Log "User won: " + String(INTEGER007) + " minutes", 0
GetUser
AdjTime +INTEGER007
PutUser
InputStr "Would you like to play again (@X06Y@X03/@X06N@X02): _", STRING003, 2, 3, "YNyn", 256 + 8 + 128
If (STRING003 == "Y") Then
Newline
PrintLn "@X06Here we go AGAIN!"
Goto LABEL002
Endif
Endif
INTEGER002 = INTEGER002 + INTEGER001
U_Notes(2) = String(INTEGER002)
PutUser
Newline
PrintLn "@X07Today you have won @X06" + String(INTEGER004) + " @X07minutes."
PrintLn "@X07Your current score is @X06" + String(INTEGER001) + "@X07."
PrintLn "@X07Your total score is @X06" + String(INTEGER002) + "@X07."
PrintLn "@X07Thanks for playing, come again!"
Log Chr(27) + "[0;31mRussian Roulette v1.00 Coded by Al Bundy", 1
End
:LABEL003
Log Chr(27) + "[0;31mRussian Roulette v1.00 Coded by Al Bundy", 1
Newline
PrintLn "@X04So, we got us a @X06CHICKEN@X04. But don't be insulted only real man play this game."
Newline
End
;------------------------------------------------------------------------------
;
; Usage report (before postprocessing)
;
; ■ Statements used :
;
; 4 End
; 1 Cls
; 8 Goto
; 12 Let
; 3 Print
; 22 PrintLn
; 5 If
; 4 GetUser
; 4 PutUser
; 2 AdjTime
; 8 Log
; 3 InputStr
; 3 Delay
; 9 Newline
; 1 Bye
;
;
; ■ Functions used :
;
; 1 +
; 1 -
; 25 +
; 5 ==
; 4 !
; 1 ||
; 5 Chr()
; 3 Random()
; 6 String()
; 1 Psa()
;
;------------------------------------------------------------------------------
;
; Analysis flags : WA
;
; W - Write user ■ 5
; Program writes a user record. Although this may be normal for a
; User Editor, it may also be a way to modify an account level.
; ■ Search for : PUTUSER
;
; A - Adjust online time remaining ■ 5
; Program modify the amount of online time remaining, this may
; be a way to bypass time limits
; ■ Search for : ADJTIME
;
;------------------------------------------------------------------------------
;
; Postprocessing report
;
; 0 For/Next
; 0 While/EndWhile
; 3 If/Then or If/Then/Else
; 0 Select Case
;
;------------------------------------------------------------------------------
; AEGiS Corp - Break the routines, code against the machines!
;------------------------------------------------------------------------------